import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import Header from './common/header';
import store from './store';

import Home from './pages/home';
import Detail from './pages/detail';

class App extends Component {
  render(){
    return(
      <Provider store={store}>
        <div>
          <Header />
            <Router>
              <div>
                <Route path='/' exact component={Home} />
                <Route path='/detail' exact component={Detail} />
              </div>
            </Router>
        </div>
      </Provider>
    )
  }
}
export default App;